//
//  DetailHeaderAnotherView.m
//  一点互助
//
//  Created by rimi on 16/9/3.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "DetailHeaderAnotherView.h"

@implementation DetailHeaderAnotherView
+(instancetype)loadheaderView{
    UINib *nib = [UINib nibWithNibName:@"DetailCellAnotherHeaderView" bundle:nil];
    DetailHeaderAnotherView *view = [[nib instantiateWithOwner:nil options:nil]firstObject];
    return view;
}
- (IBAction)btnTaped:(id)sender {
    if ( [_delegate respondsToSelector:@selector(btnTaped:)] ) {
        // 按钮被点击了，就应该通知监听器.并且告诉监听器哪个按钮被点击了
        [_delegate btnTaped:sender];
    } else {
        NSLog(@"监听器并没有实现onClick:方法");
    }
    
//    PLLOG(@"btn");
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
